package com.metaverse.backend.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.metaverse.backend.annotations.ExcelTitle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import javax.validation.constraints.Size;

@Data
@Entity
@Table(indexes = {
        @Index(columnList = "openid"),
})
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ExcelTitle("主播开播记录")
@ApiModel("主播开播记录")
public class RoomLog extends BaseEntity{
    @Size(min = 1, max = 50)
    @ExcelProperty("主播唯一标识")
    @ApiModelProperty("主播唯一标识")
    private String openid;//用户唯一标识

    @ApiModelProperty("房间Id")
    private String roomId;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("昵称")
    private String nickname;


    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("局号")
    private String roundId;

    /**
     *
     * 游戏版本
     *
     */
    @ApiModelProperty("游戏版本")
    private String gameVersion;


}
